package monitormercado.framework;

import java.util.Date;

public abstract class Agendamento extends ObjetoObservado {
	
	private Date data;
	
	public Agendamento(Date agendamento) {
		super();
		this.data = agendamento;
	}
	public Date getData() {
		return data;
	}
	
	protected abstract void executar();
	
	
	protected abstract boolean isExecutarAgendamento(Date dataHoraAtual);

protected abstract void definirProximaExecucao();
	
	protected void setData(Date data) {
		this.data = data;
	}
	

}
